<?php       include 'headers.php';
         
?>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link href="css/bootstrap.css" rel="stylesheet">
		<link href ="css/bootstrap-responsive.css" rel="stylesheet">
		<link href ="css/moje.css" rel="stylesheet">
        <title></title>
    </head>
    <body>
	
	 <div class="container" id="wrapper">
			<div class="row-fluid">
			<div class='span5 offset4' > 
			<div class="well">						
							
								
							<form class="form-inline" form action="login.php" method="post">
							<div class="row-fluid">
							  <div class="span8 offset3">						  
								<input type="text" class="input-small" name="email" placeholder="Email">						  	
								<input type="password" class="input-small" name="pass" placeholder="Password">
							   </label>
							   <br>
								<button type="submit" name="login"  class="btn">Zaloguj</button>
							   </form>
							  <form action="register.php" method="post">            
								<button type="submit" name="register" class="btn">Zarejestruj</button>
							</form>
							</div>
							</div>	
								<label class="checkbox">
								<input type="checkbox"> Remember me
			</div>
			</div>
			</div>
			
					
	</div>	
		</div>
        <?php
		if(isset($_POST['logout']))
		{
		unset($_COOKIE['logged']);
		}
       if (isset($_COOKIE['logged']))
             {
           
           header('Location: login.php');
             }
       
        ?>
		<script src="js/jquery-1.8.2.min.js"></script>
		<script src="js/bootstrap.js"></script>
    </body>
</html>
